package com.zijin.service.user;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zijin.PageQureyDTO;
import com.zijin.dto.user.UserRoleDTO;
import com.zijin.entity.user.UserRole;
import com.zijin.result.PageResult;
import com.zijin.vo.user.UserRoleVo;

/**
 * <p>
 * 用户和角色关联表 服务类
 * </p>
 *
 * @author JWei Xu
 * @since 2025-02-01
 */
public interface IUserRoleService extends IService<UserRole> {

    Boolean addOne(UserRoleDTO dto);

    Boolean delOne(Long id);

    UserRoleVo getUserRole(Long id);

    PageResult getPage(PageQureyDTO dto);

    void addDefaultRole(Long id);


}
